
package jrain.fw.core.business;

import java.io.Serializable;

/**
 * <pre>
 * 作者：3244924214@qq.com 
 * 描述：  业务服务常量
 * </pre>
 */
public class BusinessConst implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 业务执行成功
	 */
	public static final int RES_CODE_SUCCESS = 1;
	/**
	 * 业务执行失败，系统未知异常
	 */
	public static final int RES_CODE_ERROR_UNKOWN = 2;

	/**
	 * 业务执行失败，权限异常
	 */
	public static final int RES_CODE_ERROR_BUIS_AUTH = 3;

	/**
	 * 扩展数据－用户浏览器类型
	 */
	public static final String EXT_USER_AGENT = "userAgent";

	/**
	 * 扩展数据-客户端IP地址
	 */
	public static final String EXT_CLIENT_IP = "clientIp";
	/**
	 * 扩展数据-用户的TOKEN
	 */
	public static final String EXT_USER_TOKEN = "userToken";

	/**
	 * 扩展数据-用户ID
	 */
	public static final String EXT_USER_ID = "userId";

	/**
	 * 扩展数据－租户ID
	 */
	public static final String EXT_TENANT_ID = "tenantId";

	/**
	 * 扩展数据－文件数据
	 */
	public static final String EXT_FILES = "_files";

	/**
	 * 扩展数据－原始HTTP请求
	 */
	public static final String EXT_REQUEST = "_request";

	/**
	 * 扩展数据－原始RESPONSE响应
	 */
	public static final String EXT_RESPONSE = "_response";

	/**
	 * 扩展数据-导出文件
	 */
	public static final String EXT_EXPORT = "_export";

	/**
	 * 数据-ID
	 */
	public static final String DATA_ID = "id";

	/**
	 * 数据-租户
	 */
	public static final String DATA_TENANT = "tenant";

	/**
	 * 数据-TOKEN
	 */
	public static final String DATA_TOKEN = "token";

	/**
	 * 响应数据-响应类型
	 */
	public static final String RS_EXT_CONTENT_TYPE = "ContentType";

	/**
	 * 响应数据-无数据
	 */
	public static final String RS_NO_DATA = "__noData";

}
